export * from './auth'
export * from './common'
export * from './message'
export * from './todo'

import { useRequest } from '@h5app/sheep/hooks'

/**
 * 全员招商线索客户新增
 * @param data
 * @returns
 */
export const OfficialAccountAddClue = (data: any): Promise<ApiRequest.ResultDto<any>> => {
  const request = useRequest()

  return request({
    url: '/h5Web/clue/officialAccountAddClue',
    method: 'POST',
    data,
  })
}

/**
 * 全员招商线索客户列表
 * @param data
 * @returns
 */
export const OfficialClueList = (data: any): Promise<ApiRequest.ResultDto<any>> => {
  const request = useRequest()

  return request({
    url: '/h5Web/clue/getOfficialAccountClueList',
    method: 'POST',
    data,
  })
}

/**
 * 全员招商线索客户详情
 * @param data
 * @returns
 */
export const OfficialClueInfo = (data: any): Promise<ApiRequest.ResultDto<any>> => {
  const request = useRequest()

  return request({
    url: '/h5Web/clue/getOfficialAccountClueInfo',
    method: 'POST',
    data,
  })
}
